# CMakeLists.txt file for elzedsample
#

# Set path variables...
SET( ELZED_SAMPLE_PATH ./ )

# Declare the absolute path to the Elzed library...
SET( ELZED_LIBRARY_PATH /home/rich/Documents/elzed/sample/elzed32/ )
#SET( ELZED_LIBRARY_PATH /home/rich/Documents/elzed/sample/elzed64/ )

# Add definitions, compiler switches, etc.
#

# Declare the platform...
ADD_DEFINITIONS(-DLINUX -Wall -O2)


# Support for old-style Linux Threads, for distros based on older kernels (e.g. SUSE)
# The linuxthreads library seems to have been dropped from the 8.x Ubuntu distro, though...
#

#ADD_DEFINITIONS(-DLINUX -DLINUX_THREADS -Wall -O2)
#ADD_DEFINITIONS(-DLINUX -DLINUX_THREADS -Wall -O2 -L/lib/obsolete/linuxthreads)
#ADD_DEFINITIONS(-DLINUX -Wall -O2 -L/lib/obsolete/linuxthreads/i686)


# Declare include directories...
INCLUDE_DIRECTORIES( ${ELZED_SAMPLE_PATH} )

# Build the sample app
#

ADD_EXECUTABLE(elzedsample ${ELZED_SAMPLE_PATH}elzedsample.cpp)


# Link Elzed libraries
#

TARGET_LINK_LIBRARIES(elzedsample ${ELZED_LIBRARY_PATH}libelzed_static.a pthread rt)
#TARGET_LINK_LIBRARIES(elzedsample ${ELZED_LIBRARY_PATH}libelzed_shared.so pthread rt)

# No install targets yet...
#

#INSTALL_FILES(...)
#INSTALL_PROGRAMS(...)
#INSTALL_TARGET(...)

